Get rid of ip/ifconfig-calls, cleanup some code and a fix musl build