spawn: Solaris needs fcntl.h
spawn: hide some 'unused variable' warnings on Solaris
proctool: fix type warning on Solaris
proctool: more type warnings
oh come on
proctool: Solaris has a special hate for _XOPEN_SOURCE