fix build when Boost is not installed under /usr
fix compile on 32 bit systems