Add 'exit' to compile.m to avoid leaving running matlab processes on the build machine.