[build] Use library to link tests, remove unneeded flags
[build] Use library to link tests, remove unneeded flags

benohalloran/bomalloc,benohalloran/ipa,benohalloran/noomr,benohalloran/bomalloc,benohalloran/noomr,benohalloran/ipa