fix out of tree build

same fix that was needed for czmq some time ago