Introduce support for EXTRA_C_LDFLAGS and EXTRA_CXX_LDFLAGS in the build system, for adding C/C++-specific linker flags