Use SHA256 constant when available

Should help with HHVM, re #153
Merge pull request #156 from ianbarber/master

Use SHA256 constant when available