move source files under the lib directory