Fixed Travis compile errors.