Make it possible to use different toolkits by adding #ifdefs.