Fix to compile Flash to version 10 and below