Fix generating luma images when cross-compiling.