some makefile changes

In order to make it compile on my system, I had to change the linker flags for the json-c library. 

I also added the .PHONY section to the makefile, since that is a good practice.