Fix mingw/cygwin detection in shlr