Compilation fixes
Signal handling in TwsSystem