Set of several minor fixes:

* Fix winsock.h warnings while building for Windows;
* Add MarkUnspent for confirmed wallet transactions.