STABLE VERSION: removed attempts to use shared object library. Now, the R package has a compiled binary inside it instead. Much easier without sacrificing performance. Done for the summer.