fix compiler error for linux-3.12 and later