Fixed compile errors in block cache/device system