Fixes Windows support

- number of processors fetched using `pthread_num_processors_np()` (pthreads-w32 extension?)
- moved block file support to non-WIN32 conditional inclusion section
- conditional includes for some POSIX headers