Added config option for adding compiler and linker flags.

 - -Dc_flags  for compiler.
 - -Dld_flags for linker.