Update examples and fix building