Suppress GCC warnings complaining about ignored attributes in amx.h
Fix Ctrl+C crash on Windows

The console control event is apparently always delivered to the wrong
thread (not the main thread), hence the crash. On Linux it's the
opposite: all signals are delivered to the main thread.
Fix possible crash when signal delivered to another thread