fix clang struct vs class warnings for apf Sharing