fixed some compilation warning, the remainings ones
are related to feature not being fully implemented