fix compiling error in g++ 4.7.3
fix g++ compiler warning
fix typo bug
additional linking lib