Fix apply cache issue on permission problem.

Calling a function with necessary permission will cause apply_cache to
be filled with a "non-exist" result, and later calls with enough
permission will still not be able to call it.

Fixed by explicitly return as runtime problem on access permission denied.
It also skip the cache filling on such errors.
ORIGIN_INTERNAL can access private functions.

ORIGIN_INTERNAL is used by input related stuff, and they can not apply
to other object than the one requested, so they should be able to access
private function without problem.
Correctly detect Linux and x86-64 environment.
Delete auto-generated files.
Delete auto generated file under /packages.
Delete auto-generated files.
Fix compile warnings
Fix overflow issue for TYPE_MOD_ARRAY.
Warning fixes, also I belive is 64bit lpc fixes.
ORIGIN_INTERNAL can now access private functions.
Compile warning fixes
version 2.24.sunyc2