Updates for 1.7.10 build
Fix Python bindings build for different Python versions.
Big overhauling of the build scripts. Now everything seems to work automatically.