Yes, it works ,but your patch seems have a problem: it can not work with amd64.
you hardcoded that preload /usr/lib/libfreeimage.so.3, but there is not 32bit version of this file. Maybe, takes this file with this package, can do this job. -- YunQiang Su

