fixed some compilation bugs

I was programming in mac so I had some compilation problems that I
couldn't detect. Now I'm using visual basic.