This addresses, and hopefully fixes testcase 'bb840cdcff715b7e491d282f9d36ff99'.

Unfortunately I needed to change a design decision which might open up new errors.
The future will tell.

isOrdered  =  True
	dateAdded  =  March 13, 2013, 4:50 pm
	isSurge  =  False
	drawrate  =  50
	attackingDeck  =  QVNPA2
	isDelayed  =  False
	deckId  =  bb840cdcff715b7e491d282f9d36ff99
	comments  =  Tests that Chaos on Death can target the attacking Assault.
	defendingDeck  =  PoMc+i
	winrate  =  50
	isDefendingExactOrdered  =  False
	type  =  custom
	isExactOrdered  =  False
	isDefendingOrdered  =  False
improve VERSION.h generation, cuts needless rebuilds
style, comments
question
typo
namespaces, missing includes, remove old includes
fix faction name and type
cleanup, questions
that should solve the linking issue emerald000 reported.

in fact linking static libraries is a bit involved and very order sensitive.
I recommend reading
http://stackoverflow.com/questions/45135/linker-order-gcc
for more details.