Make Mac g++ compiler happy and case the base before pow