Fixed bug in UNIX build introduced during Windows work