Small changes in singleton pattern.
Merge branch 'master' of https://github.com/NCrashed/ThunderEngine