linux compile fixes