minor bug-fixes now compiles and installs successfully.