more compile fixes for gcc/linux