Move libraries to lib directory