Don't compile using installed headers.
Fixed makefile for logic test.