Fixed imports and debugging options to better support building as static app.