Fix return issue on 64 bit Windows