Fix header include, declare specialized functions in header