make erlang use openshift ips/ports
add c code change needed to build correctly