Change project structure to have main components compile to a static library