Don't try to get row view with index -1 (osx)
Cancel tasks when shutting down
Fix some long->int conversion warnings
Use libc++ as std library; disable debug (osx)
Pass duration when starting a time entry