SERVER-11814 Fix overflow on 32 bit systems
SERVER-11144 Fix typo in check for systemLog.logAppend