Warn about file locking w/out UNIX/WIN32 defined

Neither lock_fd() nor unlock_fd() are defined when UNIX and WIN32 aren't
defined, causing errors at the linking stage.  This pushes the error
earlier into the compiling stage, at the source rather than later on.