Fix build errors with flash userpage