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