fixes for ubuntu 12.04 bw compat