Fix some compiler errors related to -Wmaybe-uninitialized turned on by default in XCode 4.6. Closes #137.