Make libshared compile again
Update to rust master
Move to cargo
Remove almost all deprecations
Stop using deprecated method