Strip out linker options not appropriate when building dynamically loadable object.