[Fix] forward declaration and namespace missing