Include sys/stat.h for Unix98. Don't define locking constants in