Missing files in cmake generated build.

Added missing files to CMakeLists.txt mechanism.cpp, null_mechanism.cpp and plain_mechanism.cpp