Detect os in separated cpp files.