Modified compile script to include packaging