Thanks for tackling this!  unistd.h is not fully portable. Could you try including apr-1/apr_time.h and use apr_sleep instead? See Directory.cpp for an example of this.  Hopefully that will work for you. Thanks!