generate texture ids on build

Run the texture ID generation script before each build. Tested on Linux and Windows.