fix compiling with port forwarding support disabled