In order to compile and install KWin4 on your system, type the following in the base directory of the KWin4 distribution:
%
./configure
%
make
%
make install
Since KWin4 uses autoconf and automake you should have no trouble compiling it. Should you run into problems please report them to the KDE mailing lists.