Basic cmake support

This makes qlibc buildable via cmake