enable compiler optimizations for texture compression libraries by default
fix memory leak