Fix light was alwasy been disabled in release mode (tools=no)
Merge pull request #798 from marynate/PR-fix-light-in-release-mode

Fix light was always been disabled in release mode (tools=no)