Android support

Howdy!

Commits 1 & 3 are some tweaks needed to get the module to build on Android; the mod2fname commit is similar, but also affects VMS, OS/2, and in the future, possibly Windows.