There should be a plug with a thru-post fitting designed for that hole, to allow the speedo to be removed temporarily for cleaning. Personally, I like having the speedo and would encourage you to replace it with a new one.

Otherwise, glass over it. It should not be too much work and is the only secure way to fix it permanently. Of course the boat will have to hauled...