apparently on windows log2() is not defined => tweak for that