Fixed Travis build errors