gcc requires -m64 to link 64-bit shared libraries on Solaris.