More synthesis fixes for Xilinx
- Modify project to set preprocessor macro VENDOR_XILINX
- Make CLOG2 macro implementation dependent on VENDOR_XILINX
- Fix a bunch of other small errors