Changed some warnings into build errors.