hostname: fix sethostname prototype on linux

Maybe we should move all these cfg blocks into a separate platform or system module, that has wrappers for these functions?