set default version to 1.7.x and fix some minor build/compile errors