Setting flags to values greater than 255 now allowed; fixes #53