Compile Torch app