Reorganized compilation scripts