Fixed error when project does not build.
Fixed some warnings.