Fix cmake build.

Add definitions for the APP_* defines and remove a file which was removed
in a previous commit but the merge went poorly.