Added wxUSE_MSGDLG checks to minimal sample.

With everything wxUSE_MENUS disabled, this code is not really reachable but it doesn't compile since wxMessageBox(..) is missing. Disabling this enables running minimal sample with current chkconf definitions.