Added support for compiling with clang. Fixed the last of changes in directory structure.