fixed blown pointers that cause core dumps, compiles on gcc 4.4.4 properly