Fixing compilation errors. Hint to myself: don't rely on IDE, always build
with crazy-fun before commit