fix linking examples with cgl