Add object-like stubs to build process, fix some bugs

Compiling with unused parameters warning