Support LDFLAGS

This change passes LDFLAGS to the linking command for the chisel c++ compilation.

I ran the unit tests and it solves my current issue.