Move Main.hs to a different source root

This prevents recompiling the system from recompiling the library.