silence CMake warnings about included GTK2 script
fix fprintf-related warnings
func returns an int, not a long int
include string.h for memset, whoops
pass correct number of args to avoid sentinel warning