Move libraries to separate directories.