Fix build constraints and merge per-platform examples into a single one