Fix build for latest rust nightly

- static -> const