refs #6 fixed compilation errors with -DWITH_DEBUG=1, removed unwanted files