[gcc-warning-fix][int-to-pointer-cast]

Please check if the includes for intptr_t are correct; I stole them from
AdvApp2Var_SysBase.hxx.