Fix Multiple Definition

Sorlok accidentally merged in my old code for action_webpage which Josh
told me to turn into a platform function. Tested and confirmed to fix
multiple definition error on first build, can be merged.