Fixed crash bug when function declared and not defined. Ensure lower
case for include file names. Fix uninitialized pointer when compiling
64bit.  Add -O2 to compile to get speed back.