Huge thanks for the replies.
sneak is right, it's not from the current smlib. I tried to make the compile work by including smlib in my plugin, but unfortunatelly it didn't work. The attached file worked perfectly though.
Much thanks again for your time and help guys.
__________________