[PATCH i-g-t 3/7] lib: Fix compilation on non-x86