patch applied (cabal-branches/cabal-1.2): Compile a .c rather than a .hs file to make a .o file in ld -x configure test