Report a bit more detail when signing fails.
Turned on some warnings explicitly, and fixed code.
Mac fixes for the extra warnings.