added linker options for maxosx