Fixed Subproject Target Dependencies

A serialized project couldn't been deserialized properly, because the target was written, which caused a warning about an attempt to initialize an object with an unknown UUID.
@fabiopelosin: Yes, I verified that finally. The proxy is set even if the target belongs to the same project.