Global refactoring. Support LWJGL only.