Fix compile errors with some versions of GCC.
More issues with compile errors.
Disallow context-dependent copy/assignment.
clean up some compiler warnings on 32-bit
version preparation