Link necessary libraries on SunOS