Fix crash bug when trying to load progs.dat
Minor renderer revamp

BSP drawing rewritten, now sorts by texture all the time and has
per-surface frustum culling
Fixed several rendering flaws
Added extension hooks for texture_env_add and combine