[fix] fix warning, missing include, and more configuration