mingw: make mingw_signal return the correct handler