Add API support for build and maps in Lua scripts