Compiles ffi modules without errors.

I've been working on updating this library for the last version of rust (0.12 as of writing). Things will compile instead of complaining..