Removed forward declaration of gzFile again as it seems to have changed from precise to trusty, added explicit casts to prevent trusty build from failing