Fix compilation via Makefile