Check whether a valid protobuf compiler exists

This fixes an issue with incomplete protobuf installations, e.g., on
Ubuntu 14.04.