Fix compile error under rust-nightly

* lib: static => const
* demo: update to lib changes
* cargo: add demo bin