Merge pull request #27 from martinthomson/sdp_stub

Much
Fix most signature mismatches
Merge pull request #28 from ekr/partial_compile_fix

Fix most signature mismatches
Clean up some other scary stuff
Merge pull request #29 from ekr/other_compile_fixes

Clean up some other scary stuff
Moving to strings for BW