Do not use texture compression on GUI images. Patch by zaaak@laposte.net. Closes ticket:4086
Minor fixes for bugs which can cause segfaults.
Fix spaces to tabs.