Fixed Warnings
Make it compile with xcode