Compiles ffi modules without errors.

I've been working on updating this library for the last version of rust (0.12 as of writing). I've been able to build the ffi modules now, but I'm still in the process of getting the wrappers to compile.