Linux compile fixes