First step towards porting MasterBuilder under Linux.

- Added CMake project (I suggest using to generate XCode project and remove the latter from sources).
- #ifdef'ed Grand Central Dispatch (no alternative implemented though).
- Updated generated protobuf code (out of necessity, this can be ignored - proper solution is to run protoc as part of the build process and perhaps not check in generated files).