Compilation and Minecart fixes