fixes for mysql on windows