Brian Cameron - 2008-03-21

patch fixing problem, making the code more portable.