fix borked configure options. client multi-threading bug fixes. cleanup