Few handy pieces of code to use with LD_PRELOAD.