Fixed examples build functions.