Some work (incomplete) to be able to build the qt wallet