Improved texture tool and fixed a problem with the wxWidgets cmake scripts.

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>