Updating for latest rust and fixing linking issues