-pedantic fixes
llvm 3.2 is missing some intrinsics
llvm trunk removed SSPBufferSize
Added better error messages for bad vectorization widths
Build now fails if initmod doesn't compile
Merge pull request #108 from steven-johnson/master

posix_clock.cpp should use sys/time.h
Embed OpenCL headers for simpler runtime build
Attempt to fix CL include build on Linux
Add Profiling utility to Halide

This provides a rudimentary Profiling facility for tracking down
performance issues in complex pipelines. By enabling profile mode
(HL_PROFILE=1), generated code is instrumented with
llvm.readcyclecounter (== rdtsc on x86) and timings for each Func
evaluation are emitted to stderr. By saving stderr and processing with
the new util/HalideProf.cpp utility, you can easily get a rough guide
to which Funcs are taking the most CPU time, either cumulatively
(including sub-Funcs) or not (excluding sub-Funcs).

As part of this effort, I added a usec-resolution timer (in addition to
the msec-resolution one), and extended PrintStmt to print 64-bit
int/uint values without truncation to 32 bits (which is what it did
before).

To use:

    export HL_PROFILE=1
    make bin/test_bounds_inference && ./bin/test_bounds_inference 2>
/tmp/foo
    make bin/HalideProf && bin/HalideProf  < /tmp/foo

Caveats:

-- this makes no effort to provide accurate or useful information when
parallelization is scheduled; more work would need to be done to safely
record data from multiple threads

-- this makes no effort to account for overhead from the profiling
instructions inserted; profile-enabled runtimes will be slower, and
inner loops will be more profoundly affected

-- I'm not wild about dumping the profiling info via stderr, but it's
expedient and probably adequate for our short-term purposes.

-- this is my first nontrial change inside Halide, and in particular my
first attempt at adding interesting code generation, so I may have made
hamfisted mistakes. Please be gentle :-)