Add support for FreeBSD

Other than this, only Makefile changes (include/lib paths) are required to build the engine on FreeBSD. It seems to run as well, however frames are only changed when mouse is moved (e.g. when there're no input events, fps is frozen).