lua: Fix static install

Fixes #461.