Added check for libdispatch with GNUstep runtime support.
Fixed main thread support.
Added support for main run loop.
Added support for libdispatch main queue in the main run loop.