Add LIBS to Makefile.in.template