Feature/build php modules

Fixes #355