fix a couple build problems as the version first committed to git was not really building properly