Fix Pe#9 (and Haiku#10879): Open selection no longer works.
Fix build problems with respect to yy_size_t/int
Fix warnings during build