Change crunch_add_test macro to add test main.cpp in-place rather than through library. Avoid link order issues