Fix support for Flash target