Fix coding style
Fix MinGW build