adding a missing IF clause for proto libraries, otherwise cmake crashes on Windows