Added /kmail poll command
Fixed compile errors