Fix syntax error
Split EXTRA_PRE_LDFLAGS and EXTRA_LDFLAGS into C and C++ variants as well, and pass C++11 flags to C++ linking invocations