CB-2050 Fix BOM for windows based output targets