Fixed MinGW compilation