Fix some linux compile issues