Added workaround for compiling bug with dex.