fixed gcc4.7 version compatibility
Fix memory leak around the exception wrapper.
Merge branch 'task/fix-memory-leak'
Merge branch 'master' into ecell4-integration