small fixes for using Windows GetFullPathNameW API