cleanup WASM project
add new typedefs to fix some mismatch
use bool type where it is appropriate