wip: make bitcoin compile with gcc 4.7 and c++11