modules: adjust Makefile; move module-specific LDFLAGS