Fix deprecation warnings, release 0.1.2.