add a int-version of buffer and window...

...and detect another compiler bug