Fixed compilation issues under linux x86_64