added missing linux headers

types.h & unistd.h were required but missing in two files, causing the
build to break on Linux.