src: convert to NAN for 0.8->0.11+ compatibility
src: squelch unused variable warning