Fix exposing version strings to SWIG mapscript (#4734)