I just copied the code, didn't download the zip.
And yes, I compiled it on Linux to a ".so"
And yes, I'm using Dynlibs.
EDIT:
I don't get it, I downloaded your attachment, that code works, but mine is the same as yours (almost), but doesn't work. I attached the files.