Panic if not being ran by root and fixed a warning in the C code.