Really get rid of boost::lambda
Remove some usages of variable array subscripts, since they're not allowed by the C++ standard. Fixes issues #980 and #976
Link to librt on Linux because Boost now uses clock_gettime()