Fix byte-compile warnings

'defsubst' function should be referenced after its definition.