These two files have worked simultaneously. As Jose pointed out, it looks like gazebo couldn't find the libhydraplugin. Can you check your GAZEBO_PLUGIN_PATH environment variable?