I've figured it out.

The problem was indeed related to permissions. I'm using an ntfs partition for my development activities. I couldn't run executables stored on that drive.

So I've changed the fstab entry from:

/dev/sdb2 /mnt/dev ntfs-3g auto,exec,rw,user 0 0
to:

/dev/sdb2 /mnt/dev ntfs auto,uid=1000,fmask=0077,dmask=0077 0 0
It seemed that the "user" option prevented me from running my files.