Use Valgrind types instead of system ones

This avoid conflicts when calling library functions from function
wrappers.