Optimizations for Wannier90, an open-source code for Maximally-Localised Generalised Wannier Functions