Add some compilation optimizations
Update of some scripts