forgot 'extern "C" { /* ... */ }' around lua headers.