fix for code::blocks