I think it would be better to include the appropriate header, according to posix, `unistd.h`:

http://pubs.opengroup.org/onlinepubs/009695299/functions/getuid.html