Use X11 shape extension for frame input module

When X11 shape extension is available, use it to cut out a rectangle
from the interior of the frame window. In such a way, we are able to
make transparent background, while the frame itself is opaque.
Migrating to the autotools build system