Fixed CMake policy handling and a bug in CMake add_protoc_command function.