Improved compile script a bit