[GX] enable threads, build warning fixes