corrected error-prone casts spotted on linux
cifframe/callframe: correct declarations
pl.m: static functions
NSHTTPCookie: correct error handling