Add support for loading compiled lua functions

The extension should be .lc for compiled functions.