Fix GHC panic on Windows with GHC ≥ 7.8