Use .dylib as the shared library suffix on darwin. Avoid creating a PIC version of static libs.