build: Fix build failure from missing tracker-ontologies.h

Building tracker fails due to tracker-ontologies.h being missing. The
header file was moved in commit a4d60c19 from libtracker-common to
libtracker-sparql. Include the file from the correct location.

A number of defines from tracker-ontologies.h were also renamed in
a4d60c19. Update them where necessary.

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