Minor makefile fixes

No longer always links and builds, also now it will rebuild the C
objects if a header changes.