auto-detect msys instead of requiring users to tell our build system about it