fix compilation with clang
use clang to compile with netbeans
LuaBridge pushed all fields to lua as a copy. Fix this idiocy.