small modifications to compile script