Run osflags for compile/link of tests as well

src/common.c is linked into test binary, might require some libs