Fix the build of test code
Fix build of tests. Fix unit tests for darksend and alerts
Merge pull request #13 from DeathRay1977/master

Thanks so much for this, I've been meaning to fix these