Add guards to cube header file