Make it compile; add some definitions