Memory: Fix Linux compilation errors