Add ifdefs so it works on linux