Fix a few incompatible settings with the x64 VC12 project.
Little bit of work on the relative positioning layout calculations.
Fix a bug where unsigned left/right/top/bottom values are being used instead of signed when calculating relative positions.