Allow GtkNotebook to take widget header

And fix path_at_pos on 64 bit systems