Use $(TargetPlatformFull) instead of $(GlobalCrossCompilePrefix)

Requested by Gabor Greif.
Primitive bitwise operations on Int# (Fixes #7689)
fix PrimOp dependencies
declare stable_ptr_table (should fix via-C compilation)