Fix ZMQ library loading for different platforms