some changes to run on ubuntu lts 12.03 easily