Clean up most of the inline assembly from windows
Fix coordinate type to avoid invalid cast
Maybe this will statisfy Travis
Merge pull request #330 from qcz/window-staff-registers

Clean up most of the inline assembly from windows