missing include
fixing some cmake issues
fix some printf misuses