Fix warnings and update project