Patches

A couple of minor issues I found getting my app to compile successfully.