Define AF_APP_EXTENSION based on availability with the preprocessor

As seen on Availability.h