Merge pull request #591 from est77/master

Fixed displays PR comments.
fixed compilation on Windows and tweaked code.
fixed compilation on non-Windows platforms.
implemented monochromatic photons in SPPM lighting engine.
Added missing break statement.