Change setup.py to more platform-independent
Make temp dir platform independent