fix linux compile & better error message when unitsync isn't found