Made changes to compile on xilinx