add gcc flags to remove unneeded symbols
fixup makefile to work under OS X (again)