Fix LUA and SDL builds.
Initialize some pointers to silence warnings.
Only close font object if it succeddfully initialized.