A lot of warnings fixed

Also the framework is linked with libcocaine-core now =(