Fixed use of boost::optional<bool> in OSX