Fixed warning and added -Wall in travis