Fix build on Windows (bind-to-device changes)