Interlocked LONG* gcc warning fixes.

10 files changed