Fix link errors with Sun C 5.0 on Solaris 10.