Makefile: Use LDLIBS for linking libraries instead of LDFLAGS

For some reason, in some environments. the linker needs to
have the libraries at the end of all arguments.
Make places LDLIBS by default at the end of linker arguments.
VERSION-GEN: Use "=" operator instead of "=="
dlight.c: Small fix.