Copy cairo and pixman libs and fix linking flags.