Fix for win32 compatibility

Added fixes for (default) user name and app_name so it works for windows developers.