Made code compatible with pre c99 mode and removed compiler flag. Works :)