I was missing libraries. The following binding.gyp file worked:
{
"targets" : [
{
"target_name": "AIL",
"sources": ["AIL.cc", "reader.cc"],
"link_settings" : {
"libraries":['-l:/path/to/lib/ail.so'],
}
}
]
}