Added compile conditionals to be able to build flash target.