fixes the w32 native debugging and error messages