resolved an issue around usage of native mysql 'min' implementation and a custom version that is needed when compiling for mysql 5.6