remove unused header files and XN_ASSERT
use standard new and delete