Fixed compilation errors with older compilers (abs was the issue and including <cstdlib> seemed to solve it). Small fix to linux build script