Get basic Makefile working.  Use LDLIBS; change to gcc.