Added sys/fcntl and sys/wait for linux compat