Changes to make it possible to LD_PRELOAD libttif