fix compiler warning and include queue