Added jpeg and freetype support in gd extension.