mkmf.rb: make CXXFLAGS customizable

Since https://bugs.ruby-lang.org/issues/6504, there's no way to customize CXXFLAGS in extconf.rb.