Kiln dried pine should be perfectly safe for hamsters as the way it is processed means a lot of the oils are removed, as for the paint and glue a lot of people I have seen use non toxic hot glue and either non toxic children's paint or a mix of food colouring and water (not as strong a colour but safe) hope this helps.