Validate compilation environment on testing (#294).
Merge remote-tracking branch 'private/issue/294' into 0.5-develop