Fix compiler errors for cfg attributes with latest nightly rustc.
Merge pull request #9 from moonpolysoft/cfg-attr-fix

Fix compiler errors for cfg attributes with latest nightly rustc.