invalid for pre-UNIX 03 X/Open applications" error on SunOS and correctly define _POSIX_SOURCE. Should fix build issues on SunOS.