fix all warnings about implicit declarations