If you have the libStaticMapPlugin.so file somewhere, you can copy and paste it to ~/your_workspace_ws/devel/lib folder. Now Gazebo should be able to find it.