weston: Fix pageflipping and override modules

See patches for details.