making changes on configure.ac and tests/Makefile.am in order to compile unit tests on mac