Remove 'stg' prefixes from headers and add it to libraries