Fixed some minor portability issues, separated GUI constants from algori...

Hi there, thanks a lot for this awesome implementation :) I'm working in Ubuntu and had to fix some minor portability issues before I was able to compile it successfully. Could be interesting for you to incorporate them into your code.