[FOLD] resource manager compile fixes