.mex* files are files that have been compiled for use with MS Windows on x86 based processors. They are, internally, the same structure as .dll files -- i.e., only for use with Windows.
Deploying to a HIL system is very likely deploying to a system with a non-Windows OS, and probably to a system that does not use an x86 type processor.
I think you are going to need to go back to the .c/.h, and you might even need to go back to Simulink and regenerate for a different target in order to take advantage of any .tlc information that might be available for the new target.
Best Answer