fixed build errors. App works fine in cmd line.