Main init and configuration

- configuration: warning level 2 for all platforms
- added macro FPS in config.h
- added debug and abort macros in debug.h
- added global displat var in global.h
- default loop in main.cpp
Added State and StateMenu
Added fps statistics, drawing functions, xsmall font loading
Added display resize support
Display leaving/entering
fix