Update main.cu

Added const in computeHistogram declaration for consistency and added conditionals to be able to run it on Windows and/or Linux.