Fixed compile errors with parallel WPR