Fixing some build errors with sample project and tests. Made all projects reference compiled native library.