Made the build system sane

main.c had to be rebuilt every time any of the other objects changed. That was
silly so I fixed it.