Was a stray old texture in boundTextures_ in thin3d. Now makes sure to invalidate them, and also make it possible to look up bound framebuffer textures when checking for valid tex parameters.
It works after the move, on Windows and Android at least. Deletes the D3DX9 shader compiler loader, which was not used.