Detect Linux OS, minor RapidJSON fix

This pull-request adds
 * detection of Linux OS variants to `resultfilename.h` 
 * inheritance from `rapidjson::BaseReaderHandler` to the RapidJSON test's `StatHandler`