Move C++ files into lib directory