Linux compile fixes, older gcc support