build: configure fixes for opensolaris