Implement a couple basic Psmf functions, unify some project settings, update native.