The trick is to figure out which board is warped. Then screw them together so they're still flush with your flat surface. In my case that meant the bottom screw on the left side could go in, but as soon as I put the upper screw in, it would not be flat.
You can see the shims in the upper...