ClanLib implementation of draw_path
Fixed crash on shutdown