Your 4.8.0.1 version does not compile without changing the unit reference jpeg to vcl.imaging.JPEG. This needs to be corrected for isapi.
I have not been able to reproduce this issue.
Compiling the packages is working as expected for Delphi XE2 with IW 12.1
Can you please let me know which version of Delphi you are using and the exact package filename that is causing this issue?