Your plugin works fine for me. You must have some library mismatch. Try cleaning the whole project or use ldd to check if the plugin depends on appropriate versions of libraries.