1) macro PSETPGRP 2) location of SDL.h The third change is fix of creating shared libraries, otherwise the P_SHAREDLIB is not honored at all. To reduce differences, it is possible to use on both systems #define PSETPGRP() setpgid(0, 0) http://www.opengroup.org/onlinepubs/9699919799/functions/setpgid.html http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc/compat-43/setpgrp.c Petr