fixing getExtension for WIN32