Solved the recompilation problem!

Tests and target binary now both depend on shared static library
which includes all recompiled code. Compilation times decreased
tremendously and this guarantees that with project growth no needless
clutter will arise.