It doesn't seem to work properly under linux. "Test" works for sure. Server crashes and dies after a restart (more at the end of the restart, or start of the new map)
I attach the .so and the .cpp fixed for compilation under linux.
I would not against you provide a better example to see.