fix compilation for different linux distributions