compile error fix for Linux