Fix unknown symbol `__imp___fmode` on windows in ghci

For some reason, setting fmode manualy makes ghci panic with error message "unknown symbol `__imp___fmode'".
For more details see bug report someone else posted on http://permalink.gmane.org/gmane.comp.lang.haskell.gtk2hs/3171