Fix compilation errors with rust v0.13.0

I am having issues with compiling this