Optimizations for Wannier90 (fork repository - see http://wannier.org for the official version)