start implementing per-target variable setting, fix framework search on OS/X