include system select headers
include utility functions headers
include string headers
remove default arguments from definitions
check shmctl return statement

this may fix some crash
Merge remote-tracking branch 'megrimm/osx_fixes'
header-checks cleanup

search for sys/select.h
drop termios.h
only include sys/select.h if available
Merge remote-tracking branch 'antoine/fix_pix_share_write'
let the caller of getShm() print the error
shmctl(IPC_STAT) returns 0 on success!
indentation
fixing printout ID

it's "pix_share_write" in the *write patch...