cmake: Fix build error on Linux