Working version with mono and windows