Moved static functions to be class methods of RequestThread
Used gnustep-config flags to compile
Added cleanup of static variables