Clean up build script and fix warnings.
Clean up build script and fix warnings.

Ignore-this: 8f079c13fb3d75e89f3fc6d614da17ec

darcs-hash:20131118231522-4d2ae-f9e74112ca2869f4ffcfeda0b86c982c58952032

johntyree/HsQML,johntyree/HsQML