Oops, need those flags for linking the tests
This seems to do the job, util.h could use more work