merged changes from bitcoin 0.7.2 branch, commit 65cee0b

merging some changes from bitcoin branch 0.7.2 to ppcoin branch. automatic merge is almost impossible.