Turns out C++ and dynamic resolution don't mix.

My new plan is to use JNI... fun.