Add missing declaration of _new_with_port

Somehow the function prototype got lost while merging.