Fix compilation warnings.
Show a message box in case of fatal error.