only use getuid if it is actually available ...