Switch the windows build to Autotools.

Also compile main tests to non-installed binaries