Fixed build errors

Fixed ambiguity errors for thread functions.
Updated Freetype libs to fix ARM internal compiler error.