changed linker flag to make it compile with json-c lib and added .PHONY section to makefile