To answer most questions here: Yes, nowadays there are cross-platform libraries you can use instead of implementing that yourself. And yes code that has grown for centuries and contains unnecessary things or patterns that aren't used nowadays can be refactored. Or at least that's how I'd interpret the article.
No one knows the circumstances that created this original code. The developer may have been working on 10 projects and threw something together just so it'd work.
If it ain't broke....