Fix permissions correctly
Link network libs and always use the gethostbyname2 wrapper on SunOS
Bulk build wants openssl