Fix bug http://www.khronos.org/bugzilla/show_bug.cgi?id=999, 16-bit luminance
texture cannot be written, add validation of format & type combos passed
to ktxWriteKTXF and make it possible to build toktx/writer.c with any
current GL {,ES} header.