Fixed build against 5.0