Fixed Compile Errors for Page Replacement