Removes lexer debug flag
Adds -D_DEBUG flag to debug builds, fixes compiler warnings