fix 5.4.x compile issue
Merge pull request #20 from JeremyWei/master

Fix 5.4.x compile issue