Fixed build errors.