Fix -Wsign-compare warnings in realpath.c
This is needed in order to build realpath.c as part of rtld.