fix conversion and missing forward declare Xcode warnings

Signed-off-by: Marc Lefrançois <mlefrancois@mirego.com>