* [core]: use _WIN32 macro instead of WIN32

_WIN32 is defined by the system
* [conf]: detect dirent header