fixed LStream write prototype (use a gconstpointer)