Fixed some install problems and some backwards compatibility issues