Build fix for MinGW