build: Add missing "static" keyword where it should be used