fix compile against node v0.11.x given buffer ABI changes