Few fixes for paths and modules handling for WIN32 build