LOOM-MEMORY: Ubuntu compilation fixes