compile fixes for Linux/GCC