Added fmin/max3.
Added color conversion routines to fpumath.
Added chdir and pwd.
Added command line tokenizer.
Disabled tokenizer test.
Added include for alloca.h on OS X.
Merge pull request #17 from dariomanesku/master

Added include for alloca.h on OS X.
Add FreeBSD support to the codebase.

The FreeBSD-specific compatibility changes are invoked when the
__FreeBSD__ macro is defined, which is the default for (I think all?)
toolchains on FreeBSD. This turns on the BX_PLATFORM_FREEBSD macro which
can be used for further specializations.

FreeBSD is a mix between Linux, NaCl and OSX, with some extra cavaets that
have been worked around:

 * malloc.h is deprecated; FreeBSD uses stdlib.h instead.
 * alloca.h doesn't exist; it's also in stdlib.h.
Merge pull request #19 from lye/freebsd-platform-code

Add FreeBSD support to the codebase.
Cleanup.
Added FreeBSD to toolchain.lua.
Initial "it works!" port to FreeBSD.

Caveats:

 * You have to install premake4.4-beta5. I have a local port for it ;_;
 * You have to instal lang/gcc47. I needed something newer than 4.2.1,
   and that's what I already had installed.
 * All of the BX_PLATFORM_FREEBSD ifdefs need to be combed through and
   validated. Maybe normalized a bit.
 * i386 is completely broken (makefile is configured for amd64 only).