Fix compile warnings about mixing device and interface orientations