Fix warnings while building