Fixed Windows compilation of Joystick interface (MSVC doesn't support C99 & the NAN macro).