Resolved compile time errors in MacDemo