changed build system for external lib srmp