fix compilation without snappy
fix compilation without openmp
replace absolute value function for compiling on arm