Fixed build of samples (now use CMake).