PowerPC64 support in safe_address function

Add a ppc64-specific implementation of the safe_address function with overflow
checking.