Quick_exit causes compile error under MinGW.
Fix some warnings.