Wrap both libc6 and libpthread for some functions

These functions are implemented on different library depending on the
architecture. Tested on Ubuntu 32-bits and 64-bits.