Fix warnings when prepare projects