I've applied the first one as obviously correct, and added the instructions as msvc-only, but the tests one isn't right. TOR_UNIT_TESTS should only be defined when doing a unit tests build: it interferes with hardening the application. If you can, maybe make a cleaned-up patch series that fixes one thing at a time, based on current maint-0.2.5 or master?
Trac: Keywords: tor-relay 025-backport deleted, tor-relay msvc added Status: new to needs_revision
The problem is that to build tests entire tor src will have to be built with TOR_UNIT_TESTS. I will have to figure a way to make some sort of makefile if flag to either build tor with TOR_UNIT_TESTS to enable tests or build tor without TOR_UNIT_TESTS and thus skip tests make file.