version sniff for api changes

Fixes build on node <= v0.10