Separation of host code into library
Removal of unnecessary libs
General cleanup