gfx/init: merged common impl, moved backend impl into sub-functions.
gfx: #include tidy.