Add before_install commands to install m2 repository and support libraries