Ensure code works for both mono and windows