Hook and wrapper fixes (getc, __isthreaded, __errno, sysconf, ...)