Fix compilation of texture generation code on OS X and windows