Improved management of custom targets

Setting protobuf-custom-targets has changed name to protobuf-generated-targets, and can be used to affect also java class generation. Back compatibility is retained