Make building in support for notifications optional.