fixing compile issues for legacy drivers