Change exception to runtimeexception
Change ld parameters. Otherwise there is a linking error to Java