Add projects and libraries

Fix compilation errors.