fix a silly bug in updateParamSize
Fix global loading, use mangled names to get param size for
stdcall/fastcall functions