Add compile flags for using ApplicationServices

Signed-off-by: Mattias Andrée <maandree@operamail.com>