introduce proper c++0x support

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>