in luaSocket usocket.h, commented out #include <unistd.h> to compile, because of errors regarding symbol "_strerror$UNIX2003".
http://www.haskell.org/pipermail/glasgow-haskell-bugs/2007-May/008233.html has some info on this.

in love_opengl.cpp changed struct display_state: int stipple_repeat; int stipple_pattern; to GLints instead

SDL_opengl.h
define for linux only
#ifndef __APPLE__
#define GL_GLEXT_VERSION 29
#endif