Fix minor compilation warnings

A missing include, initialization order, missing const