Made createwindow x64 compatible