Add necessary includes to paths.cpp
Move declaration of throw_getlasterror into file_accessor

This function is only used by the win32 file_accessor anyway.
Remove include of windows.h in util.cpp
Remove unused definitions from config.h.cmake
Move posix::set_cache_hint implementation into header
Fix file_accessor::stdio implementation