Fix some errors flagged by the compiler.

Conflicts:
	SMPageControl.h
Fix 64-bit warning.
Bump version to 1.2