Fix problems when compiling on linux. In python script, check if using windows then choose between windll and cdll