Move some definitions to header files, as they're required by luasec