Hmm, actually it would also be possible to create a static library that you can use in the compiled plugin, but this complicated the build process a little bit.
If you can rewrite it in SNEX, then obviously yes, that would be the best option (also SNEX is a 100% standard compliant subset of C++, so the conversion to a compiled node is pretty straightforward).