Fix make debug check
Putting phony target into the middle of actual target compilation is wrong and would cause rebuilds every time. As debug and check by default build with different CCFLAGS, this causes linking time problem. Closes #20 (closed)
Also separates testing targets into different categories because I am dummy and did git commit -am