Fix arguments order for gcc.

Should be:
`gcc *.c $(LDFLAGS) -o program`

See http://stackoverflow.com/questions/10454263/command-to-compile-c-files-with-a-files.