[PATCH 1/5] d3dx10: Move file/resource loading helper functions into shared code.