Compiliation fixes.

Now should compile.
Font support improvements.