{DB & Game Compiled} Fix FreeBSD and Windows compilation, Fix DevIL linkage error, refactoring main CMakeList.txt and game CMakeList.txt