Added test code to check, how menuitem can use callback. Fixed some CMakeLists files