Refactored the build system to use GNU Make.
Added support for cross-compilation to the build system.
Doc updates.