Fix compilation and use shared gwen library