[rc] fixes for windows

This fixes the new nested controller stuff for windows (as well as a few minor fixes outside of the new stuff).