Moved libraries to subdirectories.

Updated the CMake configuration accordingly.

Signed-off-by: JureBericic <jure.bericic@gmail.com>