GSH_Direct3D9: Fixed paletted textures using PSMCT16 CLUTs.
SMODE2 register is written to frame dumps for proper interlaced mode settings when playing back the dump.
Removed useless virtual functions.
Alpha testing cleanup in both OpenGL and Direct3D.
implement toupper and tolower for return to arms