move files to their own library and fix a few compile issues