Fix for msys build