build: Fix compilation with Bluetooth disabled

https://bugzilla.gnome.org/show_bug.cgi?id=732306