Fixed compilation errors on Tomboy-Library

Minor changes to make sure the build is not broken