optimizations for the release build
Merge pull request #2 from fr500/master

optimizations for the release build