Fixed Marmalade compile errors