remove creat prototype as unused
some more shared function definitions
nice is derived now not syscall
nice now returns value as POSIX requires