Make undefined names errors in VS project.

- We never want to use undeclared functions. Should have done this a long time
  ago.
Instruct VS to not include all win32 headers.
Include global.h in thread modules.
Add transform split recursion to intra reconstruction.
Add tr_split to lcu_set_intra_mode.
Add chroma mode to lcu_set_intra_mode.

- This is needed for intra split.
Make deblocking work with transform splits.

- It used to work only with the implicit transform split from LCU size.
Stop deblocking from filtering edges not on 8x8 grid.
Merge branch 'intra-split'
Move intra mode search form intra module to search module.

- Make the actual intra prediction function global.

- Move the rdo stuff to rdo module.
Fix intra mode search not doing boundary smoothing for DC.

- Move the boundary smoothing to the prediction function to make sure it's not
  forgotten.