Fix linux/gcc compilation using ugly #define hack
remove include of net/if_ppp.h, as it does not exist on OS-X
merge in misc.h fix
use %zu for size_t, fixing warnings