Fix a couple of trivial issues

Removed an extraneous semicolon from an if.
Set a default for a value on initialisation as there wasn't a default.
Change explicit paths to libraries to -l format in the xcode project. Not 100% sure whether this is necessary for everyone, but without doing this I couldn't compile it.