fixed library dependencies and a cleaned out some stuff