Fixing unix build issue with direct.h