compile fixes for Linux