fix compile error on non-linux platforms