Cleanup for objects destruction and process termination. This is still work in progress, I don't like the way it's handled right now.
Since I plan to use SDL3 API, I had to replace GLFW window and surface creation with SDL3 variant. For now it's working fine.
I replaced magic number with a good define.