Convert statics to constants

Due to breaking change in the Rust compiler
Merge pull request #233 from Noctune/master

Convert statics to constants