main(): fix signal handling to be more portable (using signal)
AppManager: add missing include + comment on Windows limit