Replace sys/fcntl.h with fcntl.h everywhere

To handle Android which apparently has no sys/fcntl.h

Suggested by Yura Pakhuchiy