Improve compilation script between OSs