Fixed Qt::RubyThreadFix error

Fix for CLI tools suffered.