Added check for memory leak.
Fixed C4244 warnings.
Fixed GCC warning.
Enable screen shot save when CRT file is present.
Merge branch 'master' of github.com:bkaradzic/bgfx