Some changes to utilities

- Removed redundant method
- Added cleanup to shader compilation