fixed linux compile issues