fixed warnings and building on ubuntu precise, boost 1.46, gcc 4.6