update build settings and get rid of warning