Separated into libraries and got it working with a shell script and dlopen
for some reason all this eclipse metadata wasn't present before