Fix compiler warnings: use non-deprecated constants