Move external libraries to lib directory