generator_c: do not give libraries directly to target_link_libraries through the LDFLAGS variable