Fix w64 build
* src/windowmessages.cpp (delayed_invalidate_ui): Cast delay to intptr_t before casting to int.