Adding a workaround for read-only Enum.java during build