add basename implementation for win32