use jniloader instead of bundled code

use common logic for loading your natives (code inspired by the cibuddy code, but greatly improved for a larger variety of scenarios)