cmake.mk: fix passing of LDFLAGS