fixed compilation errors on VPS