Replaced static keyword with const for global constants.

This was a recent change integrated into the rust compiler as per RFC #246 https://github.com/rust-lang/rfcs/pull/246

This should fix issue #8.