I had another idea: I rolled back all the changes I had done to the xnretro.sh file and copied libSM.so.6 (actually libSM.so.6.0.1 which is the real library and libSM.so.6 which is a symlink) into the XnRetro lib/ subdirectory.