a little tweak to unexport getlongpath

This rolls getlongpath into the implementations of new and read, so external callers don't need to worry about it.  It also cleans up the extraneous copies of functions that exist in syscall already.