Added workaround for bug with gcc 4.4.