Support cxx files and limiting the extension definitions to a
single place