Fix warnings when compiling modules lib