fixed a bug when compilation with gcc -> include stdlib.h for exit() and atoi() usage
Merge branch 'hotfix_1.0.2'