Separate code based on OS