Merge commit '3f94dfa' into stable
remove possibility of 63 bit overflow in ParseMoney
Merge commit '65ba3e2f5024e1e38e119a0c25d5fc30c896cd65' into 0.4.x
Fix for 64bit build
Bump version to 0.4.1
bitcoind does not need to link with gthread-2.0
Added a workaround for an Ubuntu bug which causes -fstack-protector-all to be disregarded.
Only define __STDC_LIMIT_MACROS if not already defined.
Add returns to avoid annoying compile-time warnings.
Resilvering
Obsolete keypool and make sure database removes log files on shutdown.
Fix boost filesystem incompatibility problem
Update gitian descriptors to point at stable git repo
add message about restarting bitcoin after encrypting wallet succesfully
Fix crash-on-osx-on-shutdown bug. And cleanup CDB handling in Rewrite.
Tweak handling of boost filesystem versions

(partial cherry pick)
Remove vladimir's DNS seed, at his request.
Create new keypool for newly encrypted wallets.
Only remove database log files on shutdown after wallet encryption/rewrite
Never remove database files on shutdown, it caused unreadable wallets on some testers' machines.