Support cross build in OL 7 and build xd as part of build

Signed-off-by: Suriyan Ramasami <suriyan.r@gmail.com>