generator_c: do not give libraries directly to target_link_libraries through the LDFLAGS variable
Merge pull request #1 from doudou/master

fix passing link flags to the generated library