net.h should be redone, simply wrapping posix doesn't work