Fix setOnIcon and setOffIcon when compiled
Merge pull request #24 from gslender/master

Fix setOnIcon and setOffIcon when compiled