gtk lib, calculator example and some supporting patches