Linux compilation error fixes