High Mass X-ray Binaries as a Star Formation Rate Indicator in Distant Galaxies