fix compiler warnings in gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2 on Ubuntu 14.04