Added parent field to zmtp_socket type and refactored source code and tests
Resolved preprocessor error