zproxy fix for older versions was not working

- selftest did not work properly with zmq_device as underlying engine
- conditional compile was using wrong macros