Fixed compatability issues with vista 64bit.