Mmmh, I think your jpeg includes are not compatible with VBCC. They seem to be for SAS/C only.
>typedef __asm ULONG
Adding #define __asm in the begining of the file could help here...
>typedef __asm ULONG (*JPGD_HOOK_PROTO)( register __a0 void
Change "register __a0" to "__reg(a0)". Same for other similar instances...