fix various compiling complains with gcc version 4.8.1 in Ubuntu Saucy
Merge pull request #39 from chrox/master

fix various compiling complains with gcc version 4.8.1 in Ubuntu Saucy