BaseTools: change hex parsing to use built in