use long instead of int to limit possibility of overflow in switch, closes #1
add FS_IOC_{GET}VERSION to ioctl