Added compile time switch for enabling direct thread signals
Tagged version 0.5.6