Added 'make check' target which also rebuilds tests and their dependencies.. Stupid cmake.