Fix compilation and run