Fixed generating dll bug in last commit.