fix linker bug in mavericks