Fixed compile errors in examples and cluster projects