fix build for xc6