remove conflicting glibc getopt header

the header was copied from an old glibc version for some reason
which conflicts with the modern posix conformant version in
the libc include dir.

In file included from TestEmu.cpp:35:0:
../getopt.h:115:20: error: declaration of C function 'int getopt()' conflicts with
In file included from /usr/include/zconf.h:452:0,
                 from /usr/include/zlib.h:34,
                 from ../unzip.h:68,
                 from ../System.h:23,
                 from ../GBA.h:23,
                 from TestEmu.cpp:28:
/usr/include/unistd.h:124:5: error: previous declaration 'int getopt(int, char* const*, const char*)' here
Util.cpp: fix build error due to usage of libpng internals

with the update to png 1.4 some structs were made private and new
accessor functions added.

../Util.cpp: In function 'bool utilWritePNGFile(const char*, int, int, u8*)':
../Util.cpp:90:20: error: invalid use of incomplete type 'png_struct {aka struct png_struct_def}'
In file included from ../Util.cpp:25:0:
/include/libpng15/png.h:869:16: error: forward declaration of 'png_struct {aka struct png_struct_def}'
Util.cpp: fix build error due to wrong zlib function pointer prototype

../Util.cpp: In function 'gzFile_s* utilGzOpen(const char*, const char*)':
../Util.cpp:995:73: error: invalid conversion from 'int (*)(void*, void*, unsigned int)'
to 'int (*)(gzFile, voidp, unsigned int) {aka int (*)(gzFile_s*, void*, unsigned int)}' [-fpermissive]
prof.cpp: provide stubs if PROFILING is not defined

the profiling code does not compile currently, and uses some glibc
specific profiling infrastructure that's not 64bit safe.

prof.cpp: In function 'void profCleanup()':
prof.cpp:274:44: error: cast from 'char*' to 'u32 {aka unsigned int}' loses precision [-fpermissive]
prof.cpp:305:29: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
etc
configure.in: default profiling to off, as its broken
rename all cpp into c, as they're 99.9% C

we aim to compile them with the C compiler which is much faster.
only the win32 and gtk files use C++ constructs.
rename expr.cpp.h to expr.c.h
fix compilation with C compiler

this involves changes to the build system as well as getting rid of some
C++ features that were used

- function overloading - split into funcs with different names
- unnamed unused arguments - give them a name
- global variables initialized from other global vars - use constant
  macros to initialize them

also the lex/yacc files were regenerated.
get rid of generated autoconf files
update README.
add .gitignore