Changed texture builder to support lua build system