- fixed some MinGW compilation errors